export interface IPagination {
  count: number,
  page: number,
  size: number,
  total: number,
}

export interface IGenericPagination<T> extends IPagination {
  data: T[],
}

// 基于游标的分页
export interface ICursorPagination {
  paging: ICursorPaging
}

export interface ICursorPaging {
  cursors: ICursor,
  previous: string,
  next: string,
}

export interface ICursor {
  before: string,
  after: string,
}
